<template>
  <div class="body">
    <i class="el-icon-close" @click="closeInsert"></i>
    <div class="body-top">
      <div class="body-top-title">
        <span>新增</span>
      </div>
    </div>
    <div class="body-content">
      <div class="body-content-top">
        <div class="body-content-top-left"><span>01巡视点</span></div>
        <div class="body-content-top-right"><span>02任务类型</span></div>
      </div>
      <div class="body-content-bottom">
        <div class="body-content-bottom-left">
          <el-input v-model="keword" placeholder="请输入关键字搜索">
            <i slot="suffix" class="el-input__icon el-icon-search" @click="searchPoints" />
          </el-input>
          <el-checkbox v-model="checkAll" class="filter-checkbox" :indeterminate="isIndeterminate"
            @change="handleCheckAllChange">全选</el-checkbox>
          <el-divider />
          <el-tree ref="tree" class="filter-tree" node-key="areaCode" show-checkbox :data="points" :props="defaultProps"
            :filter-node-method="filterNode" @check-change="handleCheckChange" />
        </div>
        <div class="body-content-bottom-right">
          <div class="body-content-bottom-right-taskType">
            <div class="taskType">
              <span>巡视类型：</span>
              <el-radio-group v-model="patrolType" @input="handleCheckedTypeChange">
                <el-radio v-for="t in patrolTypes" :key="t.patrolType" :label="t.patrolTypeName"></el-radio>
              </el-radio-group>
            </div>
            <div class="taskType">
              <span>巡视区域：</span>
              <el-checkbox v-model="checkAreaAll" :indeterminate="checkAreaAllStatus"
                style="margin-right: 30px;width: 50px;" @change="handleCheckAreaAllChange">全选</el-checkbox>
              <el-checkbox-group v-model="checkedArea" @change="handleCheckedAreaChange">
                <el-checkbox v-for="patrolArea in patrolAreas" :key="patrolArea.typeName"
                  :label="patrolArea.typeName"></el-checkbox>
              </el-checkbox-group>
            </div>
            <div class="taskType">
              <span>设备类型：</span>
              <el-checkbox v-model="checkDeviceAll" :indeterminate="checkDeviceAllStatus"
                style="margin-right: 30px;width: 50px;" @change="handleCheckDeviceAllChange">全选</el-checkbox>
              <el-checkbox-group v-model="checkedDevice" @change="handleCheckedDeviceChange">
                <el-checkbox v-for="device in devices" :key="device.deviceType"
                  :label="device.deviceTypeName"></el-checkbox>
              </el-checkbox-group>
            </div>
            <div class="taskType">
              <span>识别类型：</span>
              <el-checkbox v-model="checkRecognitionAll" :indeterminate="checkRecognitionAllStatus"
                style="margin-right: 30px;width: 50px;" @change="handleCheckRecognitionAllChange">全选</el-checkbox>
              <el-checkbox-group v-model="checkedRecognition" @change="handleCheckedRecognitionChange">
                <el-checkbox v-for="recognition in recognitions" :key="recognition.recognitionType"
                  :label="recognition.recognitionTypeName"></el-checkbox>
              </el-checkbox-group>
            </div>
          </div>
          <div class="body-content-bottom-right-infoTitle">
            <span>03填写信息</span>
          </div>
          <div class="body-content-bottom-right-info">
            <div class="info">
              <el-input v-model="taskName" placeholder="请输入">
                <span slot="prefix">任务名称：</span>
              </el-input>
            </div>
            <div class="info">
              <el-select v-model="priority" placeholder="请选择" :popper-append-to-body="false">
                  <span slot="prefix">优先级：</span>
                  <el-option v-for="item in prioritys" :key="item" :label="item"
                    :value="item" />
                </el-select>
            </div>
            <div class="end-info">
              <span>结束动作：</span>
              <el-radio v-model="finishAction" label="0">自动充电</el-radio>
              <el-radio v-model="finishAction" label="1">原地待命</el-radio>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="footer">
      <el-button type="primary" @click="confirm">确 定</el-button>
      <el-button @click="cancel">取 消</el-button>
    </div>
  </div>
</template>

<script>
import axios from 'axios'

export default {
  data() {
    return {
      station: null,
      keword: '',
      points: [],
      defaultProps: {
        children: 'children',
        label: 'areaName'
      },
      isIndeterminate: false,
      checkAll: false,
      checkAreaAllStatus: false,
      checkDeviceAllStatus: false,
      checkRecognitionAllStatus: false,
      checkAreaAll: false,
      checkDeviceAll: false,
      checkRecognitionAll: false,
      patrolAreas: [],
      devices: [],
      recognitions: [],
      checkedArea: [],
      checkedDevice: [],
      checkedRecognition: [],
      taskName: '',
      priority: null,
      prioritys: [1,2,3,4,5],
      finishAction: '0',
      patrolTypes: [],
      patrolType: null,
      checkedNodes: [] //已选择的巡视区域
    }
  },
  watch: {
    checkedArea() {
      this.checkedNodes = []
      this.checkedArea.forEach(element => {
        for (var i in this.$refs.tree.store.nodesMap) {
          if (this.$refs.tree.store.nodesMap[i].data.areaName != null && this.$refs.tree.store.nodesMap[i].data.areaName == element) {
            this.checkedNodes.push(this.$refs.tree.store.nodesMap[i].data)
          }
        }
      })
      this.$refs.tree.setCheckedNodes(this.checkedNodes)
    },
    checkedDevice() {
      let checked = []
      if (this.checkedDevice.length == 0) {
        checked = this.checkedNodes
      } else {
        let nodes = this.devices.filter(item => this.checkedDevice.includes(item.deviceTypeName)).map(item => item.deviceType)
        nodes.forEach(element => {
          for (var i in this.$refs.tree.store.nodesMap) {
            if (this.$refs.tree.store.nodesMap[i].data.deviceType != null && this.$refs.tree.store.nodesMap[i].data.deviceType == element) {
              checked.push(this.$refs.tree.store.nodesMap[i].data)
            }
          }
        })
      }
      this.$refs.tree.setCheckedNodes(checked)
    },
    checkedRecognition(){
      let checked = []
      if (this.checkedRecognition.length == 0) {
        checked = this.checkedNodes
      } else {
        let nodes = this.recognitions.filter(item => this.checkedRecognition.includes(item.recognitionTypeName)).map(item => item.recognitionType)
        nodes.forEach(element => {
          for (var i in this.$refs.tree.store.nodesMap) {
            if (this.$refs.tree.store.nodesMap[i].data.recognitionType != null && this.$refs.tree.store.nodesMap[i].data.recognitionType == element) {
              checked.push(this.$refs.tree.store.nodesMap[i].data)
            }
          }
        })
      }
      this.$refs.tree.setCheckedNodes(checked)
    }
  },
  methods: {
    searchPoints() {
      this.$refs.tree.filter(this.keword)
    },
    filterNode(value, data) {
      if (!value) return true
      return data.areaName.indexOf(value) !== -1
    },
    handleCheckAllChange() {
      this.isIndeterminate = false
      if (this.checkAll) {
        this.checkAll = true
        this.$refs.tree.setCheckedNodes(this.points)
        this.expandAll(true)
      } else {
        this.checkAll = false
        this.$refs.tree.setCheckedNodes([])
        this.expandAll(false)
      }
    },
    expandAll(flag) {
      if (flag) {
        for (var i in this.$refs.tree.store.nodesMap) {
          this.$refs.tree.store.nodesMap[i].expanded = true
        }
      } else {
        for (var j in this.$refs.tree.store.nodesMap) {
          this.$refs.tree.store.nodesMap[j].expanded = false
        }
      }
    },
    handleCheckChange() {
      const checkeds = this.$refs.tree.getCheckedNodes(false, true).length
      const allNodes = Object.keys(this.$refs.tree.store.nodesMap).length
      if (checkeds === allNodes) {
        this.isIndeterminate = false
        this.checkAll = true
      } else {
        this.checkAll = false
        if (checkeds === 0) {
          this.isIndeterminate = false
        } else {
          this.isIndeterminate = true
        }
      }
    },
    handleCheckedTypeChange(value) {
      if (value == '全面巡检') {
        this.checkAreaAll = true
        this.handleCheckAreaAllChange(true)
        this.checkDeviceAll = true
        this.handleCheckDeviceAllChange(true)
        this.checkRecognitionAll = true
        this.handleCheckRecognitionAllChange(true)
      } else {
        this.checkAreaAll = false
        this.handleCheckAreaAllChange(false)
        this.checkDeviceAll = false
        this.handleCheckDeviceAllChange(false)
        this.checkRecognitionAll = false
        this.handleCheckRecognitionAllChange(false)
      }
    },
    handleCheckAreaAllChange(value) {
      if (this.patrolType == null) {
        this.$message({
          type: 'warning',
          message: '请先选择巡视类型!',
          duration: 3000
        })
        this.checkAreaAll = false
        return
      }
      this.checkedArea = value ? this.patrolAreas.map(item => item.typeName) : []
      this.checkAreaAllStatus = false
    },
    handleCheckDeviceAllChange(value) {
      if (this.patrolType == null) {
        this.$message({
          type: 'warning',
          message: '请先选择巡视类型!',
          duration: 3000
        })
        this.checkDeviceAll = false
        return
      }
      this.checkedDevice = value ? this.devices.map(item => item.deviceTypeName) : []
      this.checkDeviceAllStatus = false
    },
    handleCheckRecognitionAllChange(value) {
      if (this.patrolType == null) {
        this.$message({
          type: 'warning',
          message: '请先选择巡视类型!',
          duration: 3000
        })
        this.checkRecognitionAll = false
        return
      }
      this.checkedRecognition = value ? this.recognitions.map(item => item.recognitionTypeName) : []
      this.checkRecognitionAllStatus = false
    },
    handleCheckedAreaChange(value) {
      if (this.patrolType == null) {
        this.$message({
          type: 'warning',
          message: '请先选择巡视类型!',
          duration: 3000
        })
        this.checkedArea = []
        return
      }
      const checkedCount = value.length
      this.checkAreaAll = checkedCount === this.patrolAreas.length
      this.checkAreaAllStatus = checkedCount > 0 && checkedCount < this.patrolAreas.length
    },
    handleCheckedDeviceChange(value) {
      if (this.patrolType == null) {
        this.$message({
          type: 'warning',
          message: '请先选择巡视类型!',
          duration: 3000
        })
        this.checkedDevice = []
        return
      }
      const checkedCount = value.length
      this.checkDeviceAll = checkedCount === this.devices.length
      this.checkDeviceAllStatus = checkedCount > 0 && checkedCount < this.devices.length
    },
    handleCheckedRecognitionChange(value) {
      if (this.patrolType == null) {
        this.$message({
          type: 'warning',
          message: '请先选择巡视类型!',
          duration: 3000
        })
        this.checkedRecognition = []
        return
      }
      const checkedCount = value.length
      this.checkRecognitionAll = checkedCount === this.recognitions.length
      this.checkRecognitionAllStatus = checkedCount > 0 && checkedCount < this.recognitions.length
    },
    closeInsert() {
      this.$router.push('/szRobot/dashboard/taskEdit')
    },
    cancel() {
      this.$router.push('/szRobot/dashboard/taskEdit')
    },
    confirm() {
      this.insertPatrolTask()
    },
    getPatrolPoint() {
      axios.post(`http://${this.$store.getters.serverUrl}/station/taskCustomizationControl/getAreaTree`, null, {
        params: {
          masterId: this.station
        },
        headers: {
          Gz_security_token: this.$store.getters.Gz_security_token
        }
      }).then(({ data }) => {
        if (data.success) {
          this.points = data.data
        }
      })
    },
    getDeviceType() {
      axios.post(`http://${this.$store.getters.serverUrl}/station/taskData/getDeviceTypeList`, null, {
        params: {
          masterId: this.station
        },
        headers: {
          Gz_security_token: this.$store.getters.Gz_security_token
        }
      }).then(({ data }) => {
        if (data.success) {
          this.devices = data.data
        }
      })
    },
    getRecognitionType() {
      axios.post(`http://${this.$store.getters.serverUrl}/station/taskData/getRecognitionTypeList`, null, {
        params: {
          masterId: this.station
        },
        headers: {
          Gz_security_token: this.$store.getters.Gz_security_token
        }
      }).then(({ data }) => {
        if (data.success) {
          this.recognitions = data.data
        }
      })
    },
    getPatrolType() {
      axios.post(`http://${this.$store.getters.serverUrl}/station/taskCustomizationControl/getPatrolTypeList`, null, {
        params: {
          masterId: this.station
        },
        headers: {
          Gz_security_token: this.$store.getters.Gz_security_token
        }
      }).then(({ data }) => {
        if (data.success) {
          this.patrolTypes = data.data
        }
      })
    },
    getPatrolArea() {
      axios.post(`http://${this.$store.getters.serverUrl}/station/robotControl/getAllRobotsInRobotCtrl`, null, {
        params: {
          masterId: this.station
        },
        headers: {
          Gz_security_token: this.$store.getters.Gz_security_token
        }
      }).then(({ data }) => {
        if (data.success) {
          this.patrolAreas = data.data
        }
      })
    },
    insertPatrolTask() {
      let typeCode = null
      for(var i in this.patrolTypes){
        if(this.patrolTypes[i].patrolTypeName == this.patrolType){
          typeCode = this.patrolTypes[i].patrolType
          break
        }
      }
      let pointcodes = this.getPointCodes()
      axios.post(`http://${this.$store.getters.serverUrl}/station/taskCustomizationControl/saveTaskPlan`, {
        endAction: this.finishAction,
        patrolTypeName: this.patrolType,
        patrolType: typeCode,
        pointCodes: pointcodes,
        priority:  this.priority,
        taskName: this.taskName
      }, {
        params: {
          masterId: this.station
        },
        headers: {
          Gz_security_token: this.$store.getters.Gz_security_token
        }
      }).then(({ data }) => {
        if (data.success) {
          this.$message({
            type: 'success',
            message: '新增任务成功'
          })
          this.$router.push('/szRobot/dashboard/taskEdit')
        } else {
          this.$message({
            type: 'error',
            message: '新增任务失败'
          })
        }
      }).catch(() => {
        this.$message({
          type: 'error',
          message: '新增任务失败'
        })
      })
    },
    getPointCodes() {
      const leafs = this.$refs.tree.getCheckedNodes(true, false)
      const pointCodes = leafs.map(item => item.pointCode)
      if (pointCodes == null || pointCodes.length == 0)
        return null
      return pointCodes.join(',')
    }
  },
  mounted() {
    this.station = this.$route.query.station
    this.getPatrolPoint()
    this.getPatrolType()
    this.getPatrolArea()
    this.getDeviceType()
    this.getRecognitionType()
  }
}
</script>
<style scoped>
.body {
  position: relative;
  margin-left: 20px;
  width: 1876px;
  height: 953px;
  background: rgba(1, 55, 66, 1);
  border: 1px solid rgba(0, 188, 191, 1);
  box-shadow: inset 20px 0px 35px -9px rgba(6, 115, 115, 1);

  .el-icon-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: rgba(22, 189, 202, 1);
    border: 4px solid rgba(22, 189, 202, 1);
    box-shadow: 0px 2px 4px rgba(158, 158, 158, 0.25);
    border-radius: 50%;
    color: rgba(255, 255, 255, 1.00);
    cursor: pointer;
  }
}

.body-top {
  height: 56px;
  margin-left: 25px;
  margin-top: 25px;
  background: rgba(80, 211, 225, 0.15);
  display: flex;
  align-items: center;
}

.body-top-title {
  margin-left: 20px;
  font-size: 22px;
  font-weight: 500;
  color: rgba(223, 238, 243, 1);
}

.body-content-top {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: rgba(0, 255, 255, 1);
}

.body-content-top-left {
  display: flex;
  align-items: center;
  height: 60px;
  width: 350px;
  margin: 20px 13px 15px 25px;
  padding-left: 51px;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.4) 0%, rgba(13, 128, 236, 0) 100%);
  letter-spacing: 4px;
}

.body-content-top-right {
  display: flex;
  align-items: center;
  height: 60px;
  width: 1465px;
  margin-top: 20px;
  margin-bottom: 15px;
  padding-left: 51px;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.4) 0%, rgba(13, 128, 236, 0) 100%);
  letter-spacing: 4px;
}

.body-content-bottom {
  display: flex;
  width: 1836px;
  height: 706px;
  margin-left: 25px;

}

.body-content-bottom-left {
  width: 350px;
  height: 706px;
  background: rgba(13, 79, 90, 1);

  .el-divider--horizontal {
    height: 1px;
    background: linear-gradient(270deg, rgba(166, 246, 255, 0) 0%, rgba(135, 135, 135, 0.5) 49.31%, rgba(9, 231, 255, 0) 100%);
    display: block;
    margin: 10px 0;
  }

  .el-input {
    width: 320px;
    height: 48px;
    margin-top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .el-icon-search {
    margin-right: 10px;
    font-size: 20px;
    height: 48px;
    color: rgba(0, 255, 255, 1);
    display: flex;
    align-items: center;
  }

  .el-icon-search:hover {
    cursor: pointer;
  }

  .el-input__inner {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    width: 100%;
    height: 100%;
    background: rgba(80, 211, 225, 0.15);
    border: 2px solid rgba(15, 217, 180, 1);
    box-shadow: inset 3px 0px 0px rgba(80, 211, 225, 0.25);
    caret-color: rgba(255, 255, 255, 1);
  }

  .filter-tree {
    width: 320px;
    height: 554px;
    background: rgba(13, 79, 90, 1);
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 500;
    left: 50%;
    transform: translateX(-50%);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .filter-tree::-webkit-scrollbar {
    display: none;
  }

  .filter-checkbox {
    margin-top: 15px;
    margin-left: 40px;
    background: rgba(13, 79, 90, 1);
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 500;
  }

  .el-tree-node {
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(135, 135, 135, 0.5), rgba(255, 255, 255, 0)) 1 10;
  }

  .el-tree-node__label {
    font-size: 16px;
    font-weight: 500;
  }

  .el-tree .el-tree-node__content {
    height: 46px;
    background-color: rgba(13, 79, 90, 1);
  }

  .el-tree .el-tree-node__content:hover {
    background: rgba(189, 189, 189, 0.15);
    box-shadow: inset 0px 0px 4px rgba(80, 211, 225, 0.25);
  }

  .el-checkbox .el-checkbox__inner {
    border-radius: 50%;
    background-color: rgba(13, 79, 90, 1);
    border: 1px solid rgba(229, 230, 235, 1);
  }

  .el-checkbox .el-checkbox__input.is-checked .el-checkbox__inner {
    background: rgba(0, 125, 125, 1);
    border: 1px solid rgba(0, 125, 125, 1);
  }

  .el-checkbox__label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
  }
}

.body-content-bottom-right {
  width: 1465px;
  height: 776px;
  margin-left: 13px;

  .body-content-bottom-right-taskType {
    background: rgba(13, 79, 90, 1);
    height: 340px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(223, 238, 243, 1);
    padding-top: 18px;
    padding-left: 12px;

    .taskType {
      margin-bottom: 18px;
      display: flex;

      .el-radio-group {
        width: 1280px;
      }

      .el-checkbox-group {
        width: 1280px;
      }

      .el-radio {
        width: 100px;
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 1);
        margin-left: 5px;
        margin-right: 0;
      }

      .el-radio__label {
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 1);
      }

      .el-radio__inner {
        background: rgba(13, 79, 90, 1);
        border: 1px solid rgba(229, 230, 235, 1);
      }

      .el-radio .el-radio__input.is-checked .el-radio__inner {
        background: rgba(0, 125, 125, 1);
        border: 1px solid rgba(0, 125, 125, 1);
      }

      .el-checkbox {
        width: 145px;
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 1);
        margin-left: 5px;
        margin-right: 0;
      }

      .el-checkbox__inner {
        border-radius: 50%;
        background: rgba(13, 79, 90, 1);
        border: 1px solid rgba(229, 230, 235, 1);
      }

      .el-checkbox .el-checkbox__input.is-checked .el-checkbox__inner {
        background: rgba(0, 125, 125, 1);
        border: 1px solid rgba(0, 125, 125, 1);
      }

      .el-checkbox__label {
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 1);
      }
    }
  }

  .body-content-bottom-right-infoTitle {
    display: flex;
    align-items: center;
    height: 60px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.4) 0%, rgba(13, 128, 236, 0) 100%);
    font-size: 20px;
    font-weight: 700;
    color: rgba(0, 255, 255, 1);
    letter-spacing: 4px;
    padding-left: 51px;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .body-content-bottom-right-info {
    width: 100%;
    height: 270px;
    background: rgba(13, 79, 90, 1);

    .info {

      margin-left: 12px;

      .el-input__prefix {
        width: 80px;
        height: 36px;
        display: flex;
        align-items: center;
        margin-left: 10px;
        font-size: 16px;
        font-weight: 500;
        color: rgba(166, 166, 166, 1);
        border: none;
        margin-top: 15px;
      }

      .el-input__inner {
        padding-left: 100px;
        padding-bottom: 1px;
        width: 360px;
        height: 36px;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 1);
        background: rgba(209, 209, 209, 0.15);
        box-shadow: inset 0px 0px 4px rgba(80, 211, 225, 0.25);
        border: none;
        margin-top: 15px;
      }

      .el-select__caret {
        height: 36px;
        margin-top: 15px;
      }

      .el-select-dropdown {
        background: rgba(7, 131, 140, 1);
        border: 1px solid rgba(7, 131, 140, 1);
      }

      .el-select-dropdown__item {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 1px;
        background: rgba(7, 131, 140, 1);
        color: rgba(255, 255, 255, 1);
      }

      .el-select-dropdown__item:hover {
        background: rgba(17, 173, 240, 0.1);
        border: 1px solid rgba(17, 173, 240, 0.2);
        box-shadow: inset 0px 0px 9.34px rgba(0, 153, 255, 0.5);
      }

      .el-select-dropdown__item.selected {
        color: #409EFF;
      }
    }

    .end-info {
      font-size: 14px;
      font-weight: 500;
      color: rgba(229, 229, 229, 1);
      margin-top: 15px;
      margin-left: 28px;

      .el-radio__label {
        font-size: 14px;
        font-weight: 500;
        color: rgba(255, 255, 255, 1);
      }

      .el-radio__inner {
        background: rgba(13, 79, 90, 1);
        border: 1px solid rgba(229, 230, 235, 1);
      }

      .el-radio .el-radio__input.is-checked .el-radio__inner {
        background: rgba(7, 131, 140, 1);
        border: 1px solid rgba(7, 131, 140, 1);
      }
    }
  }
}

.footer {
  width: 100%;
  height: 68px;
  display: flex;
  justify-content: center;
  align-items: center;

  .el-button--default {
    border-radius: 2px;
    background: rgba(80, 211, 225, 0.5);
    box-shadow: inset 0px 0px 4px rgba(80, 211, 225, 0.25);
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
  }

  .el-button--primary {
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(52, 213, 235, 1) 0%, rgba(12, 150, 168, 1) 100%);
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
  }
}
</style>
